package com.wwwarehouse.contract.adapter;

import android.content.Context;
import android.os.Parcelable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.view.ViewGroup;

import com.wwwarehouse.contract.orders.import_order.ImportOrdersPagersFragment;

import java.util.List;

/**
 * 订单导入设置PagerAdapter
 * Created by ShineF on 2017/8/11 0011.
 */

public class ImportOrdersPagersPagerAdapter extends FragmentStatePagerAdapter {

    private List<ImportOrdersPagersFragment> mList;

    public ImportOrdersPagersPagerAdapter(FragmentManager fm, List<ImportOrdersPagersFragment> list, Context context) {
        super(fm);
        this.mList = list;
    }

    @Override
    public int getCount() {
        return mList.size();
    }

    @Override
    public Fragment getItem(int position) {
        return mList.get(position);
    }

    @Override
    public int getItemPosition(Object object) {
        return POSITION_NONE;
    }

    @Override
    public void destroyItem(ViewGroup container, int position, Object object) {

    }

    @Override
    public void restoreState(Parcelable state, ClassLoader loader) {

    }
}
